package t327.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import t327.mapper.ProQuaMapper;
import t327.pojo.*;
import t327.pojo.views.ProductionPlanOrderSizeDepartmentView;
import t327.pojo.views.StoreAreaWarehouseView;
import t327.service.iter.IProductService;

import java.util.HashMap;
import java.util.List;
@Service
@Transactional
public class ProductServiceImpl implements IProductService {
    @Autowired
    private ProQuaMapper proQuaMapper;
    @Override
    public List<ProductionPlanOrderSizeDepartmentView> getProQuaAll() {
        return proQuaMapper.getProQuaAll();
    }

    @Override
    public int deleteByLogicDel(Long productionPlanId) {
        return proQuaMapper.deleteByLogicDel(productionPlanId);
    }

    @Override
    public int addProQuaAll(Store store) {
//        HashMap<String,String> map = new HashMap<>();
        return proQuaMapper.addProQuaAll(store);
    }

    @Override
    public int addProQductPlan(ProductionPlan productionPlan) {
        return proQuaMapper.addProQductPlan(productionPlan);
    }

    @Override
    public List<Submission> getSubmissionAll() {
        return proQuaMapper.getSubmissionAll();
    }

    @Override
    public List<StoreAreaWarehouseView> getStoreAreaWarehouseView() {
        return proQuaMapper.getStoreAreaWarehouseView();
    }

    @Override
    public List<StoreAreaWarehouseView> togetStoreAreaWarehouseViewAll() {
        return proQuaMapper.togetStoreAreaWarehouseViewAll();
    }

    @Override
    public int addstoreAreaWare(Store store) {
        return proQuaMapper.addstoreAreaWare(store);
    }

    @Override
    public List<OrderForm> queryOrderForm() {
        return proQuaMapper.queryOrderForm();
    }

    @Override
    public List<ProductDetail> queryProductDetail() {
        return proQuaMapper.queryProductDetail();
    }

    @Override
    public List<Store> queryStore() {
        return proQuaMapper.queryStore();
    }
}
